import request from '@/utils/request'

export function getProjectDisputeList(data) {
  return request({
    url: 'dispute/list',
    method: 'post',
    data
  })
}

export function getProjectDispute(id) {
  return request({
    url: 'dispute/get',
    method: 'post',
    params: { id }
  })
}

export function addProjectDispute(data) {
  return request({
    url: 'dispute/add',
    method: 'post',
    data
  })
}

export function editProjectDispute(data) {
  return request({
    url: 'dispute/edit',
    method: 'post',
    data
  })
}

export function editProjectDisputeStatus(id, status) {
  return request({
    url: 'dispute/edit_status',
    method: 'post',
    params: { id, status }
  })
}
